package com.xinxin.blockchain.service;

import com.github.pagehelper.PageInfo;
import com.xinxin.base.entity.PageRequest;
import com.xinxin.blockchain.dao.IMemberDao;
import com.xinxin.blockchain.model.Member;
import com.xinxin.blockchain.vo.MemberLoginVO;

/**
 * @author ys
 * @date 2021/5/19
 */
public interface IMemberService extends IMemberDao {

    String getAccountSecret(Long accountId);

    Member getMemberByMobile(String fullMobile);

    MemberLoginVO doLogin(Member member);

    MemberLoginVO mobileLogin(Integer countryCode, String mobile, String smsCode);

    PageInfo<Member> listMember(PageRequest request);

    Member searchMember(String account);

    Long createMember(String account, String password, boolean rollback);
}
